﻿using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Abp.Application.Services;
using Abp.Application.Services.Dto;
using LeadThing.AbpZeroTemplate.CameraManages.Dtos;
using LeadThing.AbpZeroTemplate.Dto;

namespace LeadThing.AbpZeroTemplate.CameraManages
{
    /// <summary>
    /// 摄像机管理服务接口
    /// </summary>
    public interface ICameraManageAppService : IApplicationService
    {
        #region 扩展方法

        /// <summary>
        /// 删除全部数据
        /// </summary>
        int DeleteAllCameraManages();

        /// <summary>
        /// 获取全部摄像机
        /// </summary>
        /// <returns></returns>
        List<CameraManageListDto> GetAllCameraManages();

        /// <summary>
        /// 根据摄像机ID查询是否存在匹配数据
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        bool IsExistenceByCameraId(GetCameraManageInput input);

        /// <summary>
        /// 新增摄像机管理
        /// </summary>
        CameraManageEditDto CreateCameraManage(CameraManageEditDto input);

        #endregion

        #region 摄像机管理管理

        /// <summary>
        /// 根据查询条件获取摄像机管理分页列表
        /// </summary>
        Task<PagedResultDto<CameraManageListDto>> GetPagedCameraManagesAsync(GetCameraManageInput input);

        /// <summary>
        /// 通过Id获取摄像机管理信息进行编辑或修改 
        /// </summary>
        Task<GetCameraManageForEditOutput> GetCameraManageForEditAsync(NullableIdDto<long> input);

        /// <summary>
        /// 通过指定id获取摄像机管理ListDto信息
        /// </summary>
        Task<CameraManageListDto> GetCameraManageByIdAsync(EntityDto<long> input);



        /// <summary>
        /// 新增或更改摄像机管理
        /// </summary>
        Task CreateOrUpdateCameraManageAsync(CreateOrUpdateCameraManageInput input);





        /// <summary>
        /// 新增摄像机管理
        /// </summary>
        Task<CameraManageEditDto> CreateCameraManageAsync(CameraManageEditDto input);

        /// <summary>
        /// 更新摄像机管理
        /// </summary>
        Task UpdateCameraManageAsync(CameraManageEditDto input);

        /// <summary>
        /// 删除摄像机管理
        /// </summary>
        Task DeleteCameraManageAsync(EntityDto<long> input);

        /// <summary>
        /// 批量删除摄像机管理
        /// </summary>
        Task BatchDeleteCameraManageAsync(List<long> input);

        #endregion

        #region Excel导出功能



        /// <summary>
        /// 获取摄像机管理信息转换为Excel
        /// </summary>
        /// <returns></returns>
        Task<FileDto> GetCameraManageToExcel();

        #endregion

        #region APP
        /// <summary>
        /// 根据查询条件获取摄像机管理分页列表
        /// </summary>
        Task<PagedResultDto<CameraManageListAPPDto>> GetCameraManagesAppAsync(GetCameraManageAPPInput input);
        #endregion
    }
}
